$(function(){  
	$("#back").on("click",function(){
		//window.location.href = "list";
		window.history.back();
	});
});


function fileChange(target) {
	var isIE = /msie/i.test(navigator.userAgent) && !window.opera;
    var fileSize = 0;         
    if (isIE && !target.files) {     
      var filePath = target.value;     
      var fileSystem = new ActiveXObject("Scripting.FileSystemObject");        
      var file = fileSystem.GetFile (filePath);     
      fileSize = file.Size;    
    } else {    
     fileSize = target.files[0].size;     
     }   
     if(fileSize>5000000){  
      alert("当前apk文件超过指定大小");
      target.value="";
      return
     }
     var name=target.value;
     var fileName = name.substring(name.lastIndexOf(".")+1).toLowerCase();
     if("apk" !=fileName.toLocaleLowerCase() ){
         alert("请选择apk格式文件上传！");
         target.value="";
         return
     }
   } 
      
      